package test;

public class Dao {

    private Person[] persons;

    public Person[] getPersons(){
        return persons;
    }

    public void init(){
//        persons = new Person[3];
//        persons[0] = new Person("小名",10,new Dog[]{
//                new Dog("旺财1",4),
//                new Dog("旺财2",5),
//                new Dog("旺财3",6),
//                new Dog("旺财4",8)
//        });
//        persons[1] = new Person("小名",10,new Dog[]{
//                new Dog("旺财1",4),
//                new Dog("旺财2",5),
//                new Dog("旺财3",6),
//                new Dog("旺财4",8)
//        });
//        persons[2] = new Person("小名",10,new Dog[]{
//                new Dog("旺财1",4),
//                new Dog("旺财2",5),
//                new Dog("旺财3",6),
//                new Dog("旺财4",8)
//        });

        persons = new Person[]{
                new Person("小名",10,new Dog[]{
                        new Dog("旺财1",4),
                        new Dog("旺财2",5),
                        new Dog("旺财3",6),
                        new Dog("旺财4",8)
                }),
                new Person("小名1",13,new Dog[]{
                        new Dog("旺财11",4),
                        new Dog("旺财21",5),
                        new Dog("旺财31",6),
                        new Dog("旺财41",8)
                }),
                new Person("小名2",12,new Dog[]{
                        new Dog("旺财13",4),
                        new Dog("旺财23",5),
                        new Dog("旺财33",6),
                        new Dog("旺财43",8)
                })
        };
    }


}
